package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 子商品表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-20
 */
@TableName("wz_product")
public class WzProduct extends Model<WzProduct> {

    private static final long serialVersionUID = 1L;

    /**
     * 商品id
     */
    @TableId(value = "product_id", type = IdType.AUTO)
    private Long productId;
    /**
     * 主商品编码
     */
    @TableField("goods_id")
    private Long goodsId;
    /**
     * 主图
     */
    private String pic;
    /**
     * 库存
     */
    private Integer stock;
    /**
     * 市场价格
     */
    @TableField("market_price")
    private Integer marketPrice;
    /**
     * 平台价格
     */
    @TableField("order_price")
    private Integer orderPrice;
    /**
     * 优惠价格
     */
    @TableField("discount_price")
    private Integer discountPrice;
    /**
     * 规格1
     */
    private String specification;
    /**
     * 状态：0-下架；1-上架;
     */
    private Integer states;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getMarketPrice() {
        return marketPrice;
    }

    public void setMarketPrice(Integer marketPrice) {
        this.marketPrice = marketPrice;
    }

    public Integer getOrderPrice() {
        return orderPrice;
    }

    public void setOrderPrice(Integer orderPrice) {
        this.orderPrice = orderPrice;
    }

    public Integer getDiscountPrice() {
        return discountPrice;
    }

    public void setDiscountPrice(Integer discountPrice) {
        this.discountPrice = discountPrice;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public Integer getStates() {
        return states;
    }

    public void setStates(Integer states) {
        this.states = states;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.productId;
    }

    @Override
    public String toString() {
        return "WzProduct{" +
        "productId=" + productId +
        ", goodsId=" + goodsId +
        ", pic=" + pic +
        ", stock=" + stock +
        ", marketPrice=" + marketPrice +
        ", orderPrice=" + orderPrice +
        ", discountPrice=" + discountPrice +
        ", specification=" + specification +
        ", states=" + states +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
